import pandas as pd
import json

obj = '{"name":"james","age":"12","city":"beijing", "sons":[{"name":"aa","age":"10"},{"name":"cc","age":"16"},{"name":"bb","age":"5"}]}'
print(obj)
result = json.loads(obj)


asjson = json.dumps(result)

print(asjson)
# print(result)

siblings = pd.DataFrame(result['sons'], columns=['name', 'age'])

print(siblings)